import { join } from 'path'
import { UserConfigExport } from 'vite'

/**
 * @see https://vitejs.dev/config/
 */
export default <UserConfigExport>{
    plugins: [],
    server: {
        port: 80,
    },
    resolve: {
        alias: {
            '@': join(__dirname, 'src'),
        },
    },
    base: './',
    build: {
        outDir: 'web',
        rollupOptions: {
            input: {
                main: join(__dirname, 'index.html'),
            },
        },
    },
}
